package cn.crawler.app.sys.modules.models;

import cn.crawler.framework.base.model.BaseModel;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;
import org.nutz.integration.json4excel.annotation.J4EIgnore;

import java.io.Serializable;

/**
 * @author zl
 * @date 2020/8/6 15:13
 */
@Table("sys_apk")
@Data
public class SysApk extends BaseModel implements Serializable {

    @Column
    @Name
    @Comment("ID")
    @J4EIgnore
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(uu32 = true)
    private String id;

    @Column
    @Comment("类型")
    @ColDefine(type = ColType.VARCHAR, width = 64)
    private String type;

    @Column
    @Comment("版本")
    @ColDefine(type = ColType.VARCHAR, width = 64)
    private String version;

    @Column
    @Comment("文件名")
    @ColDefine(type = ColType.VARCHAR, width = 64)
    private String fileName;

    @Column
    @Comment("存放位置")
    @ColDefine(type = ColType.VARCHAR, width = 256)
    private String fileUploadPath;

    @Column
    @Comment("文件路径")
    @ColDefine(type = ColType.VARCHAR, width = 256)
    private String filePath;

    @Column
    @Comment("创建时间")
    @PrevInsert(els = @EL("$me.now()"))
    //Long不要用ColDefine定义,兼容oracle/mysql,支持2038年以后的时间戳
    private Long ctAt;

}
